package com.ywd.materials.admin.common;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

/**
 * YWD
 * 2025/11/12
 */
@Accessors(chain = true)
@Data
public class CommonGoodsType implements Serializable {

    @Schema(description = "ID")
    private Long id;

    @Schema(description = "一级类型名称")
    private String name;

    @Schema(description = "层级")
    private Integer level = 1;

    @Schema(description = "二级子类型列表")
    List<CommonGoodsTypeOne> children;

}
